package com.googlecode.sere.method

import com.googlecode.sere.translation.AcceptedTypes
import com.googlecode.sere.http.HttpRequest
import com.googlecode.sere.core.InvocationData

abstract class RestMethod(val uri: String, val acceptedTypes: AcceptedTypes) {
  def this(request: HttpRequest) = this(request.uri, request.acceptedTypes)
  def process(meta: InvocationData = InvocationData()): MethodResponse
}

